/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Alejo
 */
public class SplayTreeSet implements WordSet{
    private SplayTree base;
	
	public SplayTreeSet()
	{
		base = new SplayTree();
	}
	
	public Word get(Word word)
	{
                Word temp = (Word)base.find(word);
                
                return temp;
	}
	
	public void add(Word wordObject)
	{
		base.insert(wordObject);
	}
    
}
